const TaskApi = {
    listTask:function(data){
        return service.get('reportTask/page', {params:data})
    },
    addTask: function(data) {
      return service.post('task', data)
    },
    deleteTask:function(data){
        return service.put('reportTask/delete', data)
    },
    cancelTask:function(data){
        return service.put("reportTask/cancelTask",data)
    },
    getTaskInfo:function(data){
        return service.get("reportTask",{params:data})
    },
    updateState:function(data){
        return service.put("reportTaskImage/updateState",data)
    },
    getImageListByTaskId:function(data){
        return service.get("reportTaskImage/listByTaskId",{params:data})
    }
  }
  
  import service from '@/utils/request'
  
  export default TaskApi
  